package im.yisme.vo;

import java.io.Serializable;

import im.yisme.model.Music;

public class MusicVO implements Serializable{

	private long id;
	private String artist;
	private String name;
	private String filePath;
	private String duration;
	
	public MusicVO(long id, String artist, String name, String duration) {
		super();
		this.id = id;
		this.artist = artist;
		this.name = name;
		this.setDuration(duration);
	}
	
	public MusicVO(Music music){
		this.id = music.getId();
		this.artist = music.getArtist();
		this.name = music.getName();
		this.filePath = music.getFilePath();
		this.duration = music.getDuration();
	}
	
	public long getId() {
		return id;
	}

	public String getArtist() {
		return artist;
	}

	public String getName() {
		return name;
	}

	public String getFilePath() {
		return filePath;
	}

	public void setFilePath(String filePath) {
		this.filePath = filePath;
	}

	public String getDuration() {
		return duration;
	}

	public void setDuration(String duration) {
		this.duration = duration;
	}

	public void setArtist(String artist) {
		this.artist = artist;
	}

	public void setName(String name) {
		this.name = name;
	}

}
